<?php $this->headTitle('检索')?>

<style>
body,table,select,ul,li{font-size:12px;line-height:20px;}
body{margin:0;background:#fff;}
body,table,select,ul,li,td{font-family:"宋体";}
form{margin:0;padding:0;}
input,bottom{font-size:12px;line-height:19px;}
a.nav{padding:0 5px 0 5px;}
a.navlink{padding:0 5px 0 5px;background:url(http://mat1.qq.com/www/images/2006/n_ew.gif) no-repeat right top;}

a:link,a.nav:link,a.navlink:link,a:visited,a.nav:visited,a.navlink:visited,a:active,a.nav:active,a.navlink:active,a.hand:active,.c00007f,.lblue,a.lblue:link,a.lblue:visited,a.lblue:hover {color:#00007F}
a:visited{color:#800080}
a:hover,a.nav:hover,a.hand:hover,a.navlink:hover,.cf00 {color:#ff0000}
a.navlist:link,a.navlist:visited,a.navlist:active,.l000,a.l000:link,a.l000:visited{color:#000}
a.hover,a.nav:link,a.navlink,a.nav:visited,a.nav:active,a.navlist:link,a.navlist:visited,a.navlist:active,.lfff,a.lfff:link,a.lfff:visited,.l000,a.l000:link,a.l000:visited,.lblue,A.lblue:link,A.lblue:visited {text-decoration:none}
a.link,a.visited,a.active,a.nav:hover,a.navlist:hover,a.navlink:hover,a.lfff:hover,a.l000:hover,a.lblue:hover{text-decoration:underline}
.font{font-family: Arial, Helvetica, sans-serif;}
.cfff,.lfff,a.lfff:link,a.lfff:visited{color:#fff;}
.bolds,.tita1,.fff{font-weight:bold;}
.l19{line-height:19px;}
.l25{line-height:24px;}
.inp33 {width:43px; height:19px; background:#1989D7; color:#ffffff; border:0px;}
.mb4{margin-bottom:4px;}
.mb5{margin-bottom:5px;border:1px solid #92C3F2;border-top:0px;background:#D3E8FD}
.mb10{margin-bottom:10px;}
.mu6{margin-top:6px;}
.mu5{margin-top:5px;}
.pl13{padding-left:13px;}
.pt2{padding-top:2px;}
.p32 {padding-left:15px;}
.p34 {padding-left:8px;}
.p35 {padding-left:4px;}
.pt5 {padding-top:5px;}
.p36 {padding-top:6px;}
.p37 {padding-top:7px;}
.pb6{padding-bottom:6px;}
.pa327{padding:2px 0 7px 4px;}
.b1a9ec{border:1px solid #9ec9ec;}/*中间表格边线*/
.bg1989d7{background:#1989d7;}
.b1a1989d7{border:1px solid #1989d7;}
.b1afd9923{border:1px solid #fd9923;}
.b1a9dc9f3{border:1px solid #9DC9F3;}
.b1ac2c2c2{border:1px solid #C2C2C2;}
.rbga{background:#FFFFFF;border-right:1px solid #ccc;border-left:1px solid #ccc;}
.rbga1{background:#EBFAFD;border-right:1px solid #ccc;border-left:1px solid #ccc;}
.rbgt{border:1px solid #ccc;border-top:0;}
.sbot{height:21px;width:43px;margin-top:1px;}
.ibot{width:350px;height:21px;line-height:16px;}
.bd31 {border:#666666 1px solid}
.bcfcfcf {border:#cfcfcf 1px solid}
.searchfod1,.searchfod2{height:23px;width:70px;text-align:center;cursor:pointer;}
.searchfod1{background:url(jsfile/imagesa25/searchfodbg1212.gif) no-repeat;font-weight:bold;color:#fff}
.searchfod2{background:url(jsfile/imagesa25/searchfodbg21212.gif) no-repeat;}
.d{font-size: 6px}
.tit0,.tit,.tit3,tit31,.adright{line-height:21px;}
.tit31,tit32 {font-weight:bold; text-align:center}
.tit32 {background:#FE9923; line-height:16px; color:#ffffff; font-family:arial}
.tit{color:white;border-bottom:2px solid #E3E3E3}
.tit1{font-size:12px}
.tit1,.tita{padding-left:10px;font-weight:bold;float:left;}
.tit2,.titb{text-align:right;padding-right:5px;float:right;}
.shadow{padding:3px;border:1px solid #979797;margin-top:3px;}
.p31{padding-left:4px;}
.dot{font-size:12px;color: #fff;}
.left{padding-left:7px;padding-top:5px;}.tit4 {color:white;border-bottom:2px solid #E3E3E3}
.b1bababa {border:1px solid #bababa;}
.paipai {border:1px solid #9EC9F4;background:#DEEFFF;line-height:18px;text-align:center}
.tit11 {padding-left:10px;font-weight:bold;float:left;}
.fod {background:#D1E7FC;border-top:1px solid #9EC9EC;border-left:1px solid #9EC9EC;}
.fod td{border-right:1px solid #9EC9EC;border-bottom:1px solid #9EC9EC;cursor:pointer;}
.fod td.s{border-bottom:1px solid #FFFFFF;background:#FFFFFF;font-weight:bold;}
.fodinfo {border:1px solid #9EC9EC;border-top;}
.lfff1 {color:#fff;}
.fcorg{color:#f60;}
.bdE6E5ED{border-right:1px solid #E6E5ED;}
.dis{display:block;}
.undis{display:none;}
.lh22{line-height:22px;}
.cj_input{border:1px solid #C3BBB0;width:94px;height:20px;line-height:16px;}
.fontblack{color:#000;}
.fontgreen{color:#009900;}
.fontred{color:#F00;}
body, input
{
 font-family: verdana;
 font-size: 9pt;
}
h1
{
 font-family: tahoma;
 font-size: 22pt;
 text-align: left;
}
pre
{
 font-size: 9pt;
 font-family: verdana;
 border: 1px solid #006600;
 width: 400px;
 padding: 10px;
 background: #ffffff;
 color: #006600;
}
.CtlSelect
{
 border: 1px solid #006600;
 font-family: verdana;
 height: 20px;
 color: #006600;
 background: #ffffff;
 /*background:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/
}
.selected
{
 background: #006600;
 color: #ffffff;
 height: 20px;
}
.unselected
{
 height: 20px;
 color: #006600;
 line-height: 120%;
 border-bottom: 1px solid #006600;
}
.CtlSelect1
{
 border: 1px solid #003399;
 font-family: verdana;
 height: 20px;
 color: #003399;
 background: #ffffff;
 /*background:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/
}



.selected1
{
 background: #003399;
 color: #ffffff;
 height: 20px;
}
.unselected1
{
 height: 20px;
 color: #003399;
 line-height: 120%;
 border-bottom: 1px solid #003399;
}
.CtlSelect2
{
 border: 1px solid #990000;
 font-family: verdana;
 height: 20px;
 color: #990000;
 background: #ffffff;
 /*background:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/
}
.selected2
{
 background: #990000;
 color: #ffffff;
 height: 20px;
}
.unselected2
{
 height: 20px;
 color: #990000;
 line-height: 120%;
 border-bottom: 1px solid #990000;
}
.copyright
{
 margin-top: 10px;
 font-size: 9pt;
 text-align: center;
 color: #333;
 font-weight: bold;
}
</style>





<SCRIPT>
var sosoCurrHighLight = document.getElementById("sosoweb");

function trim(str){
	return str.replace(/(^\s*)|(\s*$)/g, "");
}
function sosoValidate(){
         wval = trim(frm_head.w.value);
         if(frm_head.sc.value=="post")
         {
                   frm_head.bn.value = frm_head.w.value;
                   frm_head.op.value = "enterbar";                 
         }
         else if(frm_head.sc.value=="wenwen"  &&  wval != "")
         {
                   window.open("http://wenwen.soso.com/z/SearchSolved.e?cid=w.q.in.sb.ww&sp=S"+encodeURIComponent(frm_head.w.value), "_blank");
                   return false;
         }
         if(wval == "")
                   return false;
         else {
                   return true;
            }
}

function sosoSubSearch(sc){
         changePage(sc);
         frm_head.sc.value = sc;
         if(sc == "img")
         {
                   frm_head.action = "http://image.soso.com/image.cgi";
         }
         else if(sc == "mus")
         {
                   frm_head.action = "http://music.soso.com/music.cgi";
         }
         else if(sc == "forum")
         {
                   frm_head.action = "http://bbs.soso.com/q";
         }
         else if(sc == "vid")
         {
                   frm_head.action = "http://video.soso.com/q";
         }
         else if(sc == "soba"){
                   frm_head.sc.value = "post";
                   sosoGoSoba();
         }
         else if(sc == "wenwen")
         {
                   frm_head.sc.value = "wenwen";
                   frm_head.action = "http://wenwen.soso.com/z/SearchSolved.e";
         }
         else 
         {
                   frm_head.action = "http://www.soso.com/q";
         }
}

function sosoGoSoba(){
         frm_head.action = "http://post.soso.com/sobar.q";
}

function changePage(sc){
         if(sosoCurrHighLight == null){
                  sosoCurrHighLight = document.getElementById("sosoweb");
         }
         sosoCurrHighLight.className = "searchfod2";
         sosoCurrHighLight = document.getElementById("soso" + sc)
         sosoCurrHighLight.className = "searchfod1";
         frm_head.sc.value = sc;
         frm_head.cid.value= "w.q.in.sb." + sc;
}

function isSoba(){
         if(sosoCurrHighLight == document.getElementById("sososoba")){
                   sosoGoSoba();
                   return true;
         }
         else{
                   return true;
         }
}

function goSearch(){
         changeHotWords(document.frm_head.sc.value);
         if(!sosoValidate())
                   return false;
         if(frm_head.w.value != ""){
                   frm_head.submit();
                   frm_head.bn.value = "";
                   frm_head.op.value = "";
         }
         else
                   return false;
}

function changeHotWords(category){
	document.getElementById("td_hotlist").innerHTML = eval(category + "Words");
}
function $(objID)
{
 return document.getElementById(objID);
};
function Offset(e)
{
 var t = e.offsetTop;
 var l = e.offsetLeft;
 var w = e.offsetWidth;
 var h = e.offsetHeight-2;

 while(e=e.offsetParent)
 {
   t+=e.offsetTop;
   l+=e.offsetLeft;
 }
 return {
   top : t,
   left : l,
   width : w,
   height : h
 }
}
//-----------------------------------------------
function simulateSelect(handlerFunction) { with(this)
{
 this.IDs = [];
 this.name = this;
 this.value = null;
 this.onchangeArgs = [];
 this.onchange = handlerFunction;
 this.height = 20;
 this.width = null;
 this.number = null;
 this.ctlStyle = "CtlSelect";
 this.selStyle = "selected";
 this.unselStyle = "unselected";
 this.elementPrefix = "e__";
 this.inputPrefix = "i__";
 this.containerPrefix = "c__";
 this.buttonPrefix = "b__";
 //  property for beta Version
 //  can editable combox
 this.readonly = true;
 if( arguments.length>0 )
 for(var i=0; i<arguments.length; i++)
 onchangeArgs[i-1] = arguments[i];
 return this;
}};
simulateSelect.prototype.init = function(ctlSelIDs) { with(this)
{
 eval(name).append(ctlSelIDs);
 eval(name).simulates();
}};

simulateSelect.prototype.style = function() { with(this)
{
 ctlStyle = arguments[0];
 selStyle = arguments[1];
 unselStyle = arguments[2];
}};
//-----------------------------------------------
simulateSelect.prototype.append = function(ctlSelIDs) { with(this)
{
 if( ctlSelIDs.indexOf(",")>0 )
 {
   var arrCtlSel = ctlSelIDs.split(",");
   for(var i=0; i<arrCtlSel.length; i++)
   {
     IDs.push(arrCtlSel[i]);
   }
 }
 else
 IDs.push(ctlSelIDs);
}};
simulateSelect.prototype.checkupOnMouseDown = function(e) { with(this)
{
 // here compatible mf.
 var el = e ? e.srcElement : e.target;
 if( el.id.indexOf(elementPrefix)>-1 || 
 el.id.indexOf(inputPrefix)>-1 || 
 el.id.indexOf(containerPrefix)>-1 || 
 el.id.indexOf(buttonPrefix)>-1 )
 {
   return;
 }
 else
 {
   for(var i=0; i<eval(name).IDs.length; i++)
   if( $(containerPrefix + IDs[i]) )
   $(containerPrefix + IDs[i]).style.display = "none";
 }

}};
simulateSelect.prototype.simulates = function() { with(this)
{
 for(var i=0; i<IDs.length; i++)
 eval(name).simulate(IDs[i]);
}};
simulateSelect.prototype.simulate = function(ctlSelID) { with (this)
{
 var input;
 var button;
 var object;
 var offset;

 object = $(ctlSelID);
 offset = Offset(object);
 input = document.createElement("INPUT");
 button = document.createElement("BUTTON");
 button.setAttribute("id", buttonPrefix + ctlSelID);
 //button.value = "⊿";
 button.value = "6";
 button.style.fontFamily = "Webdings, Marlett";
 button.style.background = "";
 button.onclick = input.onclick = function()
 {
   this.blur();
   eval(name).expand(ctlSelID, offset);
 };
 input.onselectstart = function()
 {
   eval(name).expand(ctlSelID, offset);
   event.returnValue = false; 
 };

 input.setAttribute("id", inputPrefix + ctlSelID);
 input.title = button.title = "click expand options";
 input.style.cursor = button.style.cursor = "default";
 input.className = button.className = ctlStyle;
 input.style.width = (width>0 ? width : object.offsetWidth);
 height ? input.style.height=button.style.height=height : "";
 input.value = value = object[0].text;
 if( readonly==true ) input.readOnly=true;

 // this method is only IE.
 object.insertAdjacentElement("afterEnd",button);
 object.insertAdjacentElement("afterEnd",input);
 object.style.display = 'none';
}};
simulateSelect.prototype.expand = function(ctlSelID, offset) { with(this)
{
 var div;
 var object = $(ctlSelID);

 if( !$(containerPrefix + ctlSelID) )
 {
   div = document.createElement("DIV");
   div.style.position = "absolute";
   div.style.display = "block";
   div.setAttribute("id", containerPrefix + ctlSelID);
   div.className = ctlStyle;
   div.style.left = offset.left;
   div.style.top = offset.top + offset.height;
   div.style.width = (width ? width : offset.width) + 20;
   if( number )
   {
     div.style.height = height * number;
     div.style.overflow = "auto";
   }
   document.body.appendChild(div);

   for(var i=0; i<object.length; i++)
   {
     div = document.createElement("DIV");
     div.setAttribute("id", div.id = elementPrefix + ctlSelID + i);
     div.style.cursor = "default";

     if( object[i].text==$(inputPrefix + ctlSelID).value )
     div.className = selStyle;
     else
     div.className = unselStyle;

     div.innerText = div.title = object[i].text;
     div.style.height = height;
     div.setAttribute("value", object[i].value);

     div.onmouseover = function()
     {
       for(var j=0; j<$(containerPrefix + ctlSelID).childNodes.length; j++)
       {
         if($(containerPrefix + ctlSelID).childNodes[j]==this)
         $(containerPrefix + ctlSelID).childNodes[j].className = selStyle;
         else
         $(containerPrefix + ctlSelID).childNodes[j].className = unselStyle;
       }            
     };
     div.onclick = function()
     {
       $(inputPrefix + ctlSelID).value = this.innerText;
       $(containerPrefix + ctlSelID).style.display = "none";
       if( onchange && value!=$(inputPrefix + ctlSelID).value )
       {
         onchange.apply(this,onchangeArgs);
         value = $(inputPrefix + ctlSelID).value;
       }
     };
     $(containerPrefix + ctlSelID).appendChild(div);
   }
   return;
 }

 if( $(containerPrefix + ctlSelID).style.display=="none" )
 {
   for(var i=0; i<object.length; i++)
   {
     if( object[i].text==$(inputPrefix + ctlSelID).value )
     $(elementPrefix + ctlSelID + i).className = selStyle;
     else
     $(elementPrefix + ctlSelID + i).className = unselStyle;
   }
   $(containerPrefix + ctlSelID).style.display="block";
   return;
 }

 if( $(containerPrefix + ctlSelID).style.display=="block" )
 {
   $(containerPrefix + ctlSelID).style.display="none";
   return;
 }
}};
simulateSelect.prototype.getValue = function(ctlSelID) { with(this)
{
 if( $(inputPrefix + ctlSelID) )
 return $(inputPrefix + ctlSelID).value;
 else
 return null;
}};
simulateSelect.prototype.addEvent = function(w, h) { with(this)
{
}};
//-----------------------------------------------
//window.onerror = Function("return true;");
//  IE only.
document.attachEvent("onmousedown", function() {
 a.checkupOnMouseDown(event);
 b.checkupOnMouseDown(event);
 c.checkupOnMouseDown(event)
});
window.attachEvent("onload", function() {
 window.a = new simulateSelect();
 a.style("CtlSelect", "selected", "unselected");
 a.init("s1");
 //-------------------------------------------
 window.b = new simulateSelect();
 b.style("CtlSelect1", "selected1", "unselected1");
 b.width = 300;
 b.number = 9;
 b.init("s2");
 //-------------------------------------------
 window.c = new simulateSelect(s1onchange, "never-online", a.getValue('s1'));
 c.style("CtlSelect2", "selected2", "unselected2");
 c.width = 320;
 c.init("s3");
});
function s1onchange(para, s)
{
 alert("onchage handler fire " + para + s);
}
</SCRIPT>


<base target="_blank">
</head>
<body>



<center>
<div>

<form name="frm_head" action="<?php echo $this->url(array('controller'=>'index','action'=>'searchlist'))?>" onSubmit="return sosoValidate();" method="post" target="_blank">

<table width="760"  border="0" align="center" cellpadding="0" cellspacing="0" background="jsfile/imagesa25/searchtbg1212.gif">
  <tr>
     <td align="center" height="23"> <table  border="0" cellspacing="0" cellpadding="0">
      <tr valign="top">
        
      </tr>
    </table>
 </td>
  </tr>
</table><br>

<table width="760"  border="0" align="center" cellpadding="0" cellspacing="0"  class="mb5" height="32">
  <tr>
    <td width="113" align="center" style="padding-left:4px;"><a href="http://www.soso.com" class="sosoblack" target="_blank"><img src="http://mat1.qq.com/www/images/soso/soso_logo.gif" border="0" onClick="javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"></a></td>
    <td width="354">
<input name="sousou" type="text" size="48" style="font-size:14px;color:#000000;height:20px;border:#1989d7 1px solid;"></td>
    <td width="114"><select name="searchfor">
<option value="IP">IP地址</option>
<option value="pcType">电脑类型</option>
<option value="room">所在科室</option>
</select></td>
    <td width="177" align="center" id="td_hotlist">
    	<script>document.write(webWords);	//初始化</script>
        <input name="submit"  type="submit" style="width:60px;height:22px;line-height:16px;margin:0;cursor: pointer;float:left; padding-top:1px;" value="搜 搜">    </tr>
  
</table>
</form>
<br>
<p>&nbsp;</p>
<?php echo $this->render('select.htm')?>
<div class="copyright">
Power By blueDestiny, never-online
http://www.never-online.net
</div>
</div>
